home *** CD-ROM | disk | FTP | other *** search
/ HAKERIS 11 / HAKERIS 11.ISO / soft / development / Macromedia RoboHelp X5 / RoboHelpOffice.exe / Data1.cab / _A2191E670EE94B55B719A46D95CE6CC2 < prev    next >
Encoding:
Text File  |  2003-07-28  |  6.6 KB  |  192 lines

  1. <html>
  2. <head>
  3. <title><!--% WH_PROJECT_TITLE %--></title>
  4. <!--% WH_PROJECT_METATAGS %-->
  5. </head>
  6. <script language="javascript1.2" src="<!--%SF_UTILS_JS%-->"></script>
  7. <script language="javascript1.2" src="<!--%SF_MESSAGE_JS%-->"></script>
  8. <script language="javascript" src="<!--%SF_VERSION_JS %-->"></script>
  9. <!--% strThisPath = FileName("","hostitself");
  10.         strHomePage=WH_WEBSKIN.navpane.homepage;
  11.         strHomePagePath=FileName(strHomePage,"result"); 
  12.         strBool =  CompareString("compnocase",strThisPath,strHomePagePath);
  13.         strPart1 = "<script language=\"javascript1.2\" src=\"";
  14.         strPart1 += SF_STUB_JS;
  15.         strPart1 += "\"></script><script language=\"javascript1.2\" src=\"";
  16.         strPart1 += SF_START_JS;
  17.         strPart1 += "\"></script>";
  18.         strPart2 = "<script language=\"javascript1.2\" src=\"";
  19.         strPart2 += SF_STUB_JS;
  20.         strPart2 += "\"></script>";
  21.         AssignString(strBool,strPart1, strPart2);
  22. %-->
  23. <script language="javascript">
  24. <!--
  25. var strDefaultTopic = "about:blank";
  26. var nWebhelpNavPaneMode = <!--% WH_USER_OPTIONS.navpane_mode %-->;            //1: DHTML 2:Applet 3:PureHTML 4:Noframeset
  27. var bNoApplet  = <!--% WH_USER_OPTIONS.navpane_no_applet %-->;
  28. var strPaneDHTML  = "<!--% WH_WEBSKIN_NAVPANE.dhtml %-->";        //whd_nvp10.htm  if tab enabled, whnframe.htm if tab disabled.
  29. var strPaneApplet = "<!--% WH_WEBSKIN_NAVPANE.applet %-->";
  30. var strPaneList   = "<!--% WH_WEBSKIN_NAVPANE.list %-->";
  31.  
  32. var strHTML = "";
  33. var strPane = "";
  34. var nViewFrameType = -1;
  35.  
  36. function CMRServer()
  37. {
  38.   this.m_cAgents = new Array;
  39. }
  40. var cMRServer = new CMRServer;
  41.  
  42. //figure out which mode is the best
  43. if (!window.gAgent)
  44. {
  45.     // low end browser, we don't even try to determine it.
  46.     document.location = "%%%SF_NOSCRIPT_HOME_HTM%%%";
  47. }
  48. else
  49. {
  50.     if (!gbNav4&&!gbIE4&&!gbOpera7&&!gbSafari)
  51.         document.location = "%%%SF_NOSCRIPT_HOME_HTM%%%";
  52.     else if (gbNav4 && !gbNav6 && ((gnVerMinor <= 4.06)))
  53.         document.location = "%%%SF_NOSCRIPT_HOME_HTM%%%";
  54.     else if (gbMac && gbIE4 && !gbIE5)
  55.         document.location = "%%%SF_NOSCRIPT_HOME_HTM%%%";
  56.     //figure out which mode is the best
  57.     else 
  58.     {
  59.         nViewFrameType=nWebhelpNavPaneMode;
  60.         if (nWebhelpNavPaneMode==1||nWebhelpNavPaneMode == 2)
  61.         {
  62.             var gbDHTML=(nWebhelpNavPaneMode==1);
  63.             if (gbNav4)                                         nViewFrameType = 2;
  64.             if (gbNav4&&(gnVerMinor < 4.1))                        nViewFrameType = 3;
  65.             if (gbNav4&&(gnVerMinor == 4.6))                    nViewFrameType = 3;
  66.             if (gbIE4&&gbDHTML)                                    nViewFrameType = 1;
  67.             if (gbIE4&&gbSunOS&&nWebhelpNavPaneMode==2)            nViewFrameType = 3;
  68.             if (gbNav6&&gbDHTML)                                nViewFrameType = 1;
  69.             if (gbNav6&&!gbNav61&&nWebhelpNavPaneMode == 2)        nViewFrameType = 3;
  70.             if (gbMac)                                            nViewFrameType = 3;
  71.             if (gbOpera7&&nViewFrameType == 2)                    nViewFrameType = 3;
  72.             if ((bNoApplet)&&(nViewFrameType == 2))             nViewFrameType = 3;
  73.         }
  74.     }
  75. }
  76.  
  77. if (nViewFrameType!=-1)
  78. {
  79.     var gbWindows = ((gAgent.indexOf("win") != -1) || (gAgent.indexOf("16bit") != -1));
  80.     //The colordepth of the 16 color on Windows is 1. 
  81.     if ((gbWindows) && (gbNav4) && (window.screen) && (window.screen.colorDepth <= 4))
  82.     {
  83.        alert("<!--% WH_CUR_LNG.JS_alert_colorlimitation%-->");
  84.        nViewFrameType = 3;
  85.     }
  86.  
  87.     //figure out which one is navpane
  88.     if (nViewFrameType == 1)
  89.         strPane = strPaneDHTML;
  90.     else if (nViewFrameType == 2)
  91.         strPane = strPaneApplet;
  92.     else 
  93.         strPane = strPaneList;
  94.  
  95.     var oParam = new Object();
  96.     oParam.sTopic = "";
  97.     var oMsg = new whMessage(WH_MSG_GETDEFAULTTOPIC, window, 1, oParam);
  98.     if (SendMessage(oMsg) && oParam.sTopic != "")
  99.         strDefaultTopic =  oParam.sTopic;
  100.  
  101.  
  102.     if (nViewFrameType == 1)
  103.     {
  104.         //DHTML (iframe or xml based)
  105.         strHTML += "<frameset  id=\"whPfset\" cols=\"260,*\" frameborder=\"1\">";
  106.         strHTML += "<frame name=\"bsscleft\" title=\"navigation frame\" src=\"" + strPane + "\" scrolling=\"no\"></frame>";
  107.         strHTML += "<frame name=\"bsscright\" title=\"topic frame\" src=\"" + strDefaultTopic + "\" scrolling=\"auto\"></frame></frameset>";
  108.     }
  109.     else if (nViewFrameType == 2)
  110.     {
  111.         //applet (xml based)
  112.         strHTML += "<frameset  id=\"whPfset\" cols=\"260,*\" framespacing=\"0\" frameborder=\"0\" border=\"0\">";
  113.         strHTML += "<frame name=\"bsscleft\" title=\"navigation frame\" src=\"" + strPane+ "\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\"></frame>";
  114.         strHTML += "<frame name=\"bsscright\" title=\"topic frame\" src=\"" + strDefaultTopic + "\" scrolling=\"auto\"></frame></frameset>";
  115.     }
  116.     else if (nViewFrameType == 3)
  117.     {
  118.         //generic html (pure html based)
  119.         strHTML += "<frameset  id=\"whPfset\" cols=\"260,*\">";
  120.         strHTML += "<frame title=\"navigation frame\" src=\"" + strPane + "\" name=\"bsscleft\"  scrolling=\"no\"></frame>";
  121.         strHTML += "<frame title=\"topic frame\" src=\"" + strDefaultTopic + "\" name=\"bsscright\" scrolling=\"auto\"></frame>";
  122.         strHTML += "</frameset>";
  123.     } 
  124.     else if (nViewFrameType == 4)
  125.     {
  126.         //no navipane at all
  127.         strHTML += "<frameset  id=\"whPfset\" border=\"0\" cols=\"100%,*\">";
  128.         strHTML += "<frame title=\"topic frame\" src=\"" + strDefaultTopic + "\" name=\"bsscright\" framespacing=\"0\" frameborder=\"0\" border=\"0\" scrolling=\"auto\">";
  129.         strHTML += "</frameset>";
  130.     }
  131.  
  132.     document.write(strHTML);
  133.  
  134.     RegisterListener2(window, WH_MSG_SHOWPANE);
  135.     RegisterListener2(window, WH_MSG_HIDEPANE);
  136.     RegisterListener2(window, WH_MSG_ISPANEVISIBLE);
  137.     window.onunload = window_unload;
  138. }
  139.  
  140. function window_unload()
  141. {
  142.     UnRegisterListener2(window, WH_MSG_SHOWPANE);
  143.     UnRegisterListener2(window, WH_MSG_HIDEPANE);
  144.     UnRegisterListener2(window, WH_MSG_ISPANEVISIBLE);
  145. }
  146.  
  147.  
  148. function onSendMessage(oMsg)
  149. {
  150.     var nMsgId = oMsg.nMessageId;
  151.     if (nMsgId == WH_MSG_SHOWPANE)
  152.     {
  153.         getElement("whPfset").cols = "260,*";
  154.         var onMsg = new whMessage(WH_MSG_PANESTATUE, this, 1, "visible");
  155.         SendMessage(onMsg);
  156.         onMsg = new whMessage(WH_MSG_GETPANEINFO, this, 1, "");
  157.         if (SendMessage(onMsg))
  158.         {
  159.             onMsg = new whMessage(WH_MSG_PANEINFO, this, 1, onMsg.oParam);
  160.             SendMessage(onMsg);
  161.         }
  162.         return false;
  163.     }
  164.     else if (nMsgId == WH_MSG_HIDEPANE)
  165.     {
  166.         getElement("whPfset").cols = "0,*";
  167.         var onMsg = new whMessage(WH_MSG_PANESTATUE, this, 1, "invisible");
  168.         SendMessage(onMsg);
  169.         onMsg = new whMessage(WH_MSG_PANEINFO, this, 1, "");
  170.         SendMessage(onMsg);
  171.         return false;
  172.     }
  173.     else if (nMsgId == WH_MSG_ISPANEVISIBLE)
  174.     {
  175.         var n = parseInt(getElement("whPfset").cols);
  176.         if (n > 0)
  177.         {
  178.             oMsg.oParam.bVisible = true;
  179.         }
  180.         return false;
  181.     }
  182.     return true;
  183. }
  184. //-->
  185. </script>
  186. <body>
  187. <noscript>
  188.     <p> It seems javascript is disabled in your browser, please enable it and reload again, or click <a href="<!--% SF_NOSCRIPT_HOME_HTM %-->">here</a> to view without javascript</p>
  189. </noscript>
  190. </body>
  191. </html>
  192.